﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 类和属性
{
    class User
    {
        public string userNumber { get; set; }
        public string userName { get; set; }
        public string password { get; set; }

        public User(string userNumber, string userName, string password)
        {
            this.userNumber = userNumber;
            this.userName = userName;
            this.password = password;
        }

        public  void print()
        {
            Console.WriteLine($"账号是{ userNumber}，用户名为：{ userName}，密码为：{ password}。");
        }

    }
}
